home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / ASSEMBLE / H145.ZIP / ASXXXX_3.ZIP / M6800.H < prev    next >
C/C++ Source or Header  |  1990-07-18  |  1KB  |  91 lines

  1. /* m6800.h */
  2.  
  3. /*
  4.  * (C) Copyright 1989,1990
  5.  * All Rights Reserved
  6.  *
  7.  * Alan R. Baldwin
  8.  * 721 Berkeley St.
  9.  * Kent, Ohio  44240
  10.  */
  11.  
  12. /*)BUILD
  13.     $(PROGRAM) =    AS6800
  14.     $(INCLUDE) = {
  15.         ASM.H
  16.         M6800.H
  17.     }
  18.     $(FILES) = {
  19.         M00EXT.C
  20.         M00MCH.C
  21.         M00ADR.C
  22.         M00PST.C
  23.         ASMAIN.C
  24.         ASLEX.C
  25.         ASSYM.C
  26.         ASSUBR.C
  27.         ASEXPR.C
  28.         ASDATA.C
  29.         ASLIST.C
  30.         ASOUT.C
  31.     }
  32.     $(STACK) = 2000
  33. */
  34.  
  35. struct adsym
  36. {
  37.     char    a_str[2];    /* addressing string */
  38.     int    a_val;        /* addressing mode value */
  39. };
  40.  
  41. /*
  42.  * Registers
  43.  */
  44. #define    A    0x00
  45. #define    B    0x10
  46. #define    X    0x20
  47.  
  48. /*
  49.  * Addressing types
  50.  */
  51. #define    S_A    30
  52. #define    S_B    31
  53. #define    S_X    32
  54. #define    S_IMMED    33
  55. #define    S_DIR    34
  56. #define    S_EXT    35
  57. #define    S_INDX    36
  58.  
  59. /*
  60.  * Instruction types
  61.  */
  62. #define    S_INH    60
  63. #define    S_PUL    61
  64. #define    S_BRA    62
  65. #define    S_TYP1    63
  66. #define    S_TYP2    64
  67. #define    S_TYP3    65
  68. #define    S_TYP4    66
  69. #define    S_TYP5    67
  70.  
  71. /*
  72.  * Set Direct Pointer
  73.  */
  74. #define    S_SDP    80
  75.  
  76.  
  77.     /* machine dependent functions */
  78.  
  79.     /* m00adr.c */
  80. extern    struct    adsym    abx[];
  81. extern    int        addr();
  82. extern    int        admode();
  83. extern    int        any();
  84. extern    int        srch();
  85.  
  86.     /* m00mch.c */
  87. extern    VOID        machin();
  88. extern    VOID        minit();
  89. extern    VOID        comma();
  90.  
  91.